Optimal. Leaf size=31 \[ -\frac {B \cot ^3(c+d x)}{3 d}+\frac {B \cot (c+d x)}{d}+B x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.088, Rules used = {21, 3473, 8} \[ -\frac {B \cot ^3(c+d x)}{3 d}+\frac {B \cot (c+d x)}{d}+B x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 21
Rule 3473
Rubi steps
\begin {align*} \int \frac {\cot ^4(c+d x) (a B+b B \tan (c+d x))}{a+b \tan (c+d x)} \, dx &=B \int \cot ^4(c+d x) \, dx\\ &=-\frac {B \cot ^3(c+d x)}{3 d}-B \int \cot ^2(c+d x) \, dx\\ &=\frac {B \cot (c+d x)}{d}-\frac {B \cot ^3(c+d x)}{3 d}+B \int 1 \, dx\\ &=B x+\frac {B \cot (c+d x)}{d}-\frac {B \cot ^3(c+d x)}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.02, size = 34, normalized size = 1.10 \[ -\frac {B \cot ^3(c+d x) \, _2F_1\left (-\frac {3}{2},1;-\frac {1}{2};-\tan ^2(c+d x)\right )}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.68, size = 90, normalized size = 2.90 \[ \frac {4 \, B \cos \left (2 \, d x + 2 \, c\right )^{2} + 2 \, B \cos \left (2 \, d x + 2 \, c\right ) + 3 \, {\left (B d x \cos \left (2 \, d x + 2 \, c\right ) - B d x\right )} \sin \left (2 \, d x + 2 \, c\right ) - 2 \, B}{3 \, {\left (d \cos \left (2 \, d x + 2 \, c\right ) - d\right )} \sin \left (2 \, d x + 2 \, c\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.34, size = 69, normalized size = 2.23 \[ \frac {B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 24 \, {\left (d x + c\right )} B - 15 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + \frac {15 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - B}{\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3}}}{24 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.36, size = 27, normalized size = 0.87 \[ \frac {B \left (-\frac {\left (\cot ^{3}\left (d x +c \right )\right )}{3}+\cot \left (d x +c \right )+d x +c \right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.21, size = 38, normalized size = 1.23 \[ \frac {3 \, {\left (d x + c\right )} B + \frac {3 \, B \tan \left (d x + c\right )^{2} - B}{\tan \left (d x + c\right )^{3}}}{3 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 6.29, size = 32, normalized size = 1.03 \[ B\,x-\frac {\frac {B}{3}-B\,{\mathrm {tan}\left (c+d\,x\right )}^2}{d\,{\mathrm {tan}\left (c+d\,x\right )}^3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 3.42, size = 49, normalized size = 1.58 \[ \begin {cases} B x - \frac {B \cot ^{3}{\left (c + d x \right )}}{3 d} + \frac {B \cot {\left (c + d x \right )}}{d} & \text {for}\: d \neq 0 \\\frac {x \left (B a + B b \tan {\relax (c )}\right ) \cot ^{4}{\relax (c )}}{a + b \tan {\relax (c )}} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________